﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows8Accelerator.Core.Xaml.Html;

namespace Windows8Accelerator.Core.Xaml.Controls.RichText
{
    public class ControlVisitor : SuperHtmlNodeVisitor
    {
        public ControlVisitor(SuperHtmlNode superHtmlNode, SuperHtmlNodeVisitor parentVisitor)
            : base(superHtmlNode, parentVisitor)
        {
            VisitChildren = false;
        }

        protected sealed override void InternalVisitNode(SuperHtmlNode htmlNode)
        {
            InternalVisitNode1(htmlNode);
        }

        protected sealed override void InternalPosVisitNode(SuperHtmlNode htmlNode)
        {
            InternalPosVisitNode1(htmlNode);
        }

        protected virtual void InternalVisitNode1(SuperHtmlNode htmlNode) { }
        protected virtual void InternalPosVisitNode1(SuperHtmlNode htmlNode) { }
    }
}
